
// MainFrm.h : interface of the CMainFrame class
//
#if !defined(AFX_MAINFRM_H__01DFCA32_8966_11D4_B4E3_005004D85AA1__INCLUDED_)
#define AFX_MAINFRM_H__01DFCA32_8966_11D4_B4E3_005004D85AA1__INCLUDED_

#pragma once
class CViewYourImageView;
#include "CMultiWndSplitter.h"

class CMainFrame : public CFrameWndEx
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
protected:
//	CSplitterWnd m_wndSplitter;					//Deleted by BaoTD1 -- 28/06/2013
	CMultiWndSplitter m_wndSplitter;			//Added by BaoTD1 -- 28/06/2013
	int m_nViewImage, m_nViewFile;				//Added by BaoTD1 -- 28/06/2013
public:

// Operations
public:

// Overrides
public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);

// Implementation
public:
	virtual ~CMainFrame();
	CViewYourImageView* GetRightPane();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CMFCMenuBar       m_wndMenuBar;
	CMFCToolBar       m_wndToolBar;
	CMFCToolBarImages m_UserImages;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnViewCustomize();
	afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
	afx_msg void OnApplicationLook(UINT id);
	afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnSplitterImage();				//Added by BaoTD1 -- 28/06/2013
	afx_msg void OnSplitterFile();				//Added by BaoTD1 -- 28/06/2013
};

#endif // !defined(AFX_MAINFRM_H__01DFCA32_8966_11D4_B4E3_005004D85AA1__INCLUDED_)
